import Vue from 'vue'
import VueRouter from 'vue-router'

import Login from './views/Login.vue'
import test from './views/test.vue'
import Home from './views/Home.vue'
import Welcome from './views/Welcome/Welcome.vue'
import Users from './views/Users/Users.vue'

Vue.use(VueRouter)

export default new VueRouter({
    routes: [
        { path: '/', redirect: '/home' },
        { name: 'test', path: '/test', component: test },
        { name: 'Login', path: '/login', component: Login },
        {
            name: 'Home',
            path: '/home',
            component: Home,
            children: [
                { path: "/home", redirect: "/home/welcome" },
                { name: "Welcome", path: "welcome", component: Welcome },
                { name: "Users", path: "users", component: Users }
            ]
        }]

})

